import { ref } from 'vue'
import { findBanner } from '@/api/home'
export function useBanner () {
  const slidersList = ref([])
  async function loadSlidersList () {
    const res = await findBanner()
    console.log('轮播图', res)
    slidersList.value = res.data.result
  }
  loadSlidersList()
  return {
    slidersList
  }
}
